package com.example.raidball;

import android.graphics.Canvas;
import android.graphics.RectF;
import android.graphics.drawable.Drawable;

public class Rectangle extends RectF
{
	//Taille du rectangle
	int width;
	int height;
	
	//Coordonn�es du point en haut a gauche du rect
	int posX;
	int posY;
	
	//Dessin du rectangle
	Drawable sprite;
	
	// ID Bloc (0=air 1=mur 2=trou 3=start 4=finish)
	private int id_block;
	
	public Rectangle (int mWidth, int mHeight, int mposX, int mposY, Drawable mSprite, int idblock)
	{

		super((float)mposY,(float)mposX,(float)mposY+mHeight,(float)mposX+mWidth);

		this.width = mWidth;
		this.height = mHeight;
		this.posX = mposX;
		this.posY = mposY;
		this.sprite = mSprite;
		this.id_block = idblock;	}
	
	public Rectangle (Rectangle mrect)
	{
		this.height = mrect.height;
		this.width = mrect.width;
		this.posX = mrect.posX;
		this.posY = mrect.posY;
		this.sprite = mrect.sprite;
	}
	
	public int getIdBlock() 
	{
		return id_block;
	}
	

}
